import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";

/**
 * /sys/role/select
 */
export function getSysRoleSelect(params: GetSysRoleSelectParams, config?: AxiosRequestConfig) {
    const paramsInput = {
        userId: params.userId,
    };
    return request.get<DeepRequired<any>>(`/sys/role/select`, {
        params: paramsInput,
        ...config,
    });
}

export interface GetSysRoleSelectParams {
    userId: number;
}
